<?php

class Admin_Form_EditPost extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
		$this
			->setMethod('post')
			->setAttrib('id', 'frmAddPost');
		
		$id = new Zend_Form_Element_Hidden('id');
		$id->setValue(0);
		
		$title = new Zend_Form_Element_Text('title');
		$title
			->setLabel('Title')
			->addFilter('StripTags')
			->setRequired(true);
		
		$category = new Zend_Form_Element_Select('category');
		$category
			->setLabel('Category')
			->setValue('0');
		
		$content = new Zend_Form_Element_Textarea('content');
		$content 
			->setLabel('Content')
			->setAttrib('style','');
		
		$published = new Zend_Form_Element_Select('published');
		$published
			->setLabel('Publish')
			->setMultiOptions(array(
				'1' => 'Published',
				'0' => 'UnPublished'
			));
		
		$submit = new Zend_Form_Element_Submit('Create');
		$submit
			->setAttrib('class','btn');
		$this
			->addElement($id)
			->addElement($title)
			->addElement($category)
			->addElement($published)
			->addElement($content)
			->addElement($submit );
		
    }
	
}

